www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawDimension::GetDimVarDouble 方法

返回标注属性的实数类型变量值

IDL
[helpstring("method GetDimVarDouble")]
HRESULT GetDimVarDouble([in] LONG iType, [out,retval] DOUBLE* pValue);
参数 
说明 
[in] LONG iType 
该属性的类型值 

返回实数类型变量值

例如: 该函数实现代码如下:

        double GetDimVarDouble(int iType) const
        {
    #define GetDimVarDoubleCase(var,type)   
            case type:  
            return var;

            switch(iType)
            {
                GetDimVarDoubleCase(m_dimaltf,143);
                GetDimVarDoubleCase(m_dimasz , 41);
                GetDimVarDoubleCase(m_dimcen ,141);
                GetDimVarDoubleCase(m_dimdle , 46);
                GetDimVarDoubleCase(m_dimdli , 43);
                GetDimVarDoubleCase(m_dimexe , 44);
                GetDimVarDoubleCase(m_dimexo , 42);

                GetDimVarDoubleCase(m_dimgap ,147);
                GetDimVarDoubleCase(m_dimlfac,144);
                GetDimVarDoubleCase(m_dimrnd , 45);

                GetDimVarDoubleCase(m_dimscale, 40);
                GetDimVarDoubleCase(m_dimtfac,146);
                GetDimVarDoubleCase(m_dimtm  , 48);
                GetDimVarDoubleCase(m_dimtp  , 47);
                GetDimVarDoubleCase(m_dimtsz ,142);
                GetDimVarDoubleCase(m_dimtvp ,145);
                GetDimVarDoubleCase(m_dimtxt ,140);
                GetDimVarDoubleCase(m_dimaltrnd,148);
                ////
            default:
                return 0.0;
            }
            return 0.0;
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!